package filters
{
		
		import flash.filters.BitmapFilterQuality;
		import flash.filters.BitmapFilterType;
		
		import spark.filters.*;
		import spark.filters.DropShadowFilter;
		import spark.filters.GlowFilter; 
		
		
		
	public class Filters
	{
		include "Filters/ShadowFilter.as";
		include "Filters/GlowFilter.as";
		include "Filters/colorTransform.as";
		
		public var myDropShadowFilter:DropShadowFilter;
		public var myGlowFilter = new Array();
		public var myBrightFilter = new Array();
		
		public function Filters()
		{}
		
		// FILTERS USED IN MAIN APP
		
		
		
		public function createShadowFilter(arr)
		{
			myDropShadowFilter = new DropShadowFilter(10, 90, 
			0x0e0e0e, 0.75, 9, 9,0.5, 1, false, false);
		
			applyFilters(arr,myDropShadowFilter);
		}
		
		public function createGlowFilter(arr)
		{
			
			myGlowFilter = setGlowFilter(0xFFFFFF);
			
			applyFilters(arr,myGlowFilter);
		}
		
		public function createBrightness(arr)
		{
			myBrightFilter = brightness(35.00);
			
			applyFilters(arr,myBrightFilter);
		}
		
		public function applyFilters(arr,appliedFilter)
		{
			for each(var item in arr)
			{
				item.filters = [appliedFilter];
			}
		}
			
		
	}
}